import Router from '@koa/router'
import userController from '../controller/user.controller'
import { tokenAuth } from '../middleware/auth.middleware'

const userRouter = new Router({ prefix: '/user' })

userRouter.get('/info', tokenAuth, userController.findById.bind(userController))

export default userRouter
